The SiteExport Plugin is used to export the User Manual (compressed siteexport.zip with multiple page html & images). The Opencpn_User_Manual TOC page:
See opencpn:opencpn_user_manal:toc
is used to provide a “hyperlinked page-by-page” Table of Contents which is required to export the User Manual.
There is more information about configuration of the IndexMenu Plugin & TOC here, but the syntax and code we need in the TOC page to create the Flat open TOC is:
CODE: {{indexmenu>:opencpn:opencpn_user_manual#5|msort nsort nojs}}
See opencpn:opencpn_user_manal:toc for the result.
To see this code, navigate to the TOC page above and use DWedit (right hand menu second button from the bottom to expose the code, you need edit rights).
The settings used were:
From the [Offline TOC page][[https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:toc_offline_user_manual|Offline TOC page]] OR [Main user page](https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual)
Select from the page's right menu, the icon second from the bottom Export SiteExport Set Namespace= _opencpn:opencpn_user_manual:toc_offline_plugins_manual_ Parent Namespace to Export= _opencpn:opencpn_user_manual:toc_offline_plugins_manual_ Select _Export all subnamespaces_ To begin disable the “Export linked pages” option. Once it processes completely, then _Check_ to have Links in the document. Export all parameters “do” _Check_ Render Engine: _ckedit_ Template: _dokuwiki_ Everything else is _unchecked_. Just hit Start ( without first hitting one of the three “Direct”, “Wget” or “Curl”) When clicking the start button it should show you that it will export x/y pages. Starts out: _Adding “opencpn:opencpn_user_manual:advanced_features:network_repeater” ( 29 / 385 )_ When the plugin completes you will be prompted to download the siteexport.zip file.
Except levels and Exclusion.
These are the settings which should be used in the Admin > Config down to SiteExport
| Parameter Description | Value |
|---|---|
| plugin export allowallusers | Checked |
| plugin siteexport default depth | 7 |
| plugin siteexport zipfilename | opencpn:siteexport.zip |
| plugin siteexport exclude | pdf zip 7z edit_user_manual blank cruisersforum gallery_boats place_view github |
| plugin siteexport max_execution_time | 2400 |
| plugin siteexport ignoreNon200 | checked |
| plugin siteexport ignoreAJAXError | checked |
| plugin siteexport debugLevel | Error |
| plugin siteexport debugFile | debug3.txt |
| plugin siteexport cachetime | 60*60*24 |
| plugin siteexport PDFHeaderPagebreak | 1 |
| plugin siteexport seOddEven | not checked |
| plugin siteexport defaultAuthenticationUser | admin |
| plugin siteexport defaultAuthenticationPassword | blank |
| plugin siteexport useProxy | blank |
| plugin siteexport offSiteLinkTemplate |
To Export OpenCPN User Manual TOC we want a non-expandable flat TOC with every page shown in proper order.
{{indexmenu>:opencpn:opencpn_user_manual#5|msort nsort nojs}}
Top Button - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn&addParams=1&defaultLang=en&depth=4&depthType=0.0&do=siteexport&ens=opencpn&exportLinkedPages=1&renderer=&template=bootstrap3
Middle Button - wget --max-redirect=4 --output-document=siteexport.zip --post-data="id=opencpn&addParams=1&defaultLang=en&depth=4&depthType=0.0&do=siteexport&ens=opencpn&exportLinkedPages=1&renderer=&template=bootstrap3" https://opencpn.org/wiki/dokuwiki/doku.php?id=doku.php --http-user=USER --http-passwd=PASSWD
Bottom Button - curl -L --max-redirs 4 -o siteexport.zip -d "id=opencpn&addParams=1&defaultLang=en&depth=4&depthType=0.0&do=siteexport&ens=opencpn&exportLinkedPages=1&renderer=&template=bootstrap3" https://opencpn.org/wiki/dokuwiki/doku.php?id=doku.php --anyauth --user USER:PASSWD
Debugging must be activated from ADMIN > CONFIG and Browser file>“find” “siteexp” go down and change these parameters:
plugin»siteexport»debugFile
Debug File debug3.txt
plugin»siteexport»zipfilename
Wiki Path and name for exported ZIP file opencpn:siteexport.zip
plugin»siteexport»exclude
Pattern to exclude resources .gov|favicon|advanced_chart_work|gshhshires
Then click on the Home button, from the dropdown button pick Media Manager
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn&do=media&ns=
and look under the directories for root then look for the debug.txt file or in our case debug3.txt. You can click on it to get it into the window, then click on the file name to download it. View it with something like NotePad++. The last error will be at the end.
Each time SiteExport is used it leaves a file here, browse to root:opencpn directory. Use Media Manager to see
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn&do=media&ns=debug3.txt